Skip to content

test: avoid double-closing server in client-request test#5255

Open
trivikr wants to merge 1 commit intonodejs:mainfrom
trivikr:test-client-request
Open

test: avoid double-closing server in client-request test#5255
trivikr wants to merge 1 commit intonodejs:mainfrom
trivikr:test-client-request

Conversation

@trivikr
Copy link
Copy Markdown
Member

@trivikr trivikr commented May 7, 2026

This relates to...

Fixes: #5203

Rationale

Some client-request tests closed their server inside the assertion callback while also registering server shutdown in after(). That could race cleanup and produce a file-level failure after the subtests had already passed.

Changes

  • Removed redundant inline server.close() calls from client-request dump tests.
  • Let the existing after() cleanup own server shutdown consistently.

Features

N/A

Bug Fixes

N/A

Breaking Changes and Deprecations

N/A

Status

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.28%. Comparing base (01122da) to head (4132cfc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5255   +/-   ##
=======================================
  Coverage   93.27%   93.28%           
=======================================
  Files         110      110           
  Lines       36366    36366           
=======================================
+ Hits        33922    33924    +2     
+ Misses       2444     2442    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[flaky] test\client-request.js

2 participants